﻿//
//  HFViewModel.h
//  HFBaseHTTPRequestManagerModule_Example
//
//  Created by admin on 2020/6/29.
//  Copyright © 2020 白野. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HFViewModel : NSObject

+ (void)loadDomainWithURLHostKey:(NSString *)URLHostKey;
+ (void)reloadBaseParametersWithMobile:(NSString *)mobile mark:(NSString *)mark uid:(NSString *)uid pjid:(NSString *)pjid token:(NSString *)token;

+ (void)verificationForRegisterWithMobile:(NSString *)mobile completionHandler:(void(^)(BOOL success, id responseObject, NSError *error))completionHandler;
+ (void)verificationForResetPasswordWithMobile:(NSString *)mobile completionHandler:(void(^)(BOOL success, id responseObject, NSError *error))completionHandler;
+ (void)verificationCodeWithMobile:(NSString *)mobile completionHandler:(void(^)(BOOL success, id responseObject, NSError *error))completionHandler;
+ (void)confirmVerificationCodeWithMobile:(NSString *)mobile code:(NSString *)code completionHandler:(void(^)(BOOL success, id responseObject, NSError *error))completionHandler;

+ (void)registerWithMobile:(NSString *)mobile password:(NSString *)password code:(NSString *)code completionHandler:(void(^)(BOOL success, id responseObject, NSError *error))completionHandler;
+ (void)passwordLoginWithMobile:(NSString *)mobile password:(NSString *)password completionHandler:(void(^)(BOOL success, id responseObject, NSError *error))completionHandler;
+ (void)resetPasswordWithMobile:(NSString *)mobile password:(NSString *)password code:(NSString *)code token:(NSString *)token completionHandler:(void(^)(BOOL success, id responseObject, NSError *error))completionHandler;
+ (void)changePasswordWithOldPassword:(NSString *)oldPassword newPassword:(NSString *)newPassword completionHandler:(void(^)(BOOL success, id responseObject, NSError *error))completionHandler;

@end

NS_ASSUME_NONNULL_END

